<a href="<?php echo site_url('admin/data_siswa/tambah/'.$id_tahun) ?>" class="btn btn-info btn-rounded"><i class="iconfa-plus"></i> Tambah Data Siswa Baru Tahun Angkatan <?php echo $tahun_pelajaran ?></a>
<br/>
<br/>
<h4 class="widgettitle nomargin shadowed">Data Siswa Tahun Angkatan <?php echo $tahun_pelajaran ?></h4>
<table class="table table-bordered" id="dyntable2">
    <colgroup>
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
    </colgroup>
    <thead>
        <tr>
            <th class="head0">Nomor Induk Siswa</th>
            <th class="head1">Nama Siswa</th>
            <th class="head0">Jenis Kelamin</th>
            <th class="head1">Tingkat Kelas</th>
            <th class="head1">Kelas</th>
            <th class="head1">Nilai UN SMP</th>
            <th class="head0">Option</th>
        </tr>
    </thead>
    <tbody>
        <?php
        foreach ($rslt_data_siswa->result() as $value_data_kelas)
        {
            echo '<tr>';
            echo '<td>' . $value_data_kelas->nomor_induk . '</td>';
            echo '<td>' . $value_data_kelas->nama_siswa . '</td>';
            echo '<td>' . $value_data_kelas->jenis_kelamin . '</td>';
            echo '<td><center>' . $value_data_kelas->tingkat_kelas . '</center></td>';
            echo '<td>' . $value_data_kelas->nama_kelas . '</td>';
            echo '<td>' . $value_data_kelas->nilai_un . '</td>';
			echo '<td><center>';
			echo '<a href="'.base_url('admin/data_siswa/edit/'.$value_data_kelas->id).'"  title="ubah"><i class="iconsweets-create"></i></a> | ';
			echo '<a href="'.base_url('admin/data_siswa/hapus/'.$value_data_kelas->id).'"  title="hapus"><i class="iconsweets-trashcan"></i></a>';
			echo '</center></td>';
            echo '</tr>';
        }
        ?>
    </tbody>
</table>
<script type="text/javascript">
    jQuery.noConflict();

    jQuery(document).ready(function() {
jQuery('#dyntable2').dataTable({
            "sPaginationType": "full_numbers",
            "aaSortingFixed": [[0, 'asc']],
            "fnDrawCallback": function(oSettings) {
//                jQuery.uniform.update();
            }
        });
		
});
</script>